/*
 * stringadditions.cpp
 *
 *  Created on: May 31, 2013
 *      Author: ozma
 */

#include "StringAdditions.h"
//#include <ostream>
#include <iostream>
//#include <sstream>

/*
 * motivation easy string builder
 *
 * Possible implementations:
 * 	1.	variadic ==> string-format + vargs + resize buffer if needed (exist in memBuf)
 * 	2. 	c style : create "s(<var>)" that convert primitives to std::string
 * 	3.	c++ create "operator+" that convert primitives to std::string
 * 		3.a extend std::string
 *
 * */

namespace Str {

StringAdditions::StringAdditions() {
	// TODO Auto-generated constructor stub

}

StringAdditions::~StringAdditions() {
	// TODO Auto-generated destructor stub
}

//std::ostringstream StringAdditions::StrStream(){
//	std::ostringstream sstr;
//	return sstr;
//}

std::string s(int num){
	std::ostringstream str;
	str << num;
	return str.str();
}
//
//std::string s(char* num);
//std::string s(long num);
//std::string s(short num);
//std::string s(__ino64_t num);
//std::string s(float num);
//std::string s(double num);
//std::string s(char num);
//std::string s(unsigned int num);


} /* namespace string_additions */
